home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 1998 June / SGI IRIX 6.5 Applications 1998 June.iso / dist / arraysvcs.idb / usr / lib / array / acpr.z / acpr
Text File  |  1998-04-15  |  393b  |  26 lines

  1. #!/bin/sh
  2. #
  3. # Simple script to invoke cpr for an array session
  4. #
  5. # USAGE: acpr <real-user> <real-group> <args-to-cpr...>
  6. #
  7.  
  8. CPR=${CPR:-/usr/bin/cpr}
  9.  
  10. #
  11. # The "real-user" and "real-group" arguments are now archaic,
  12. # and can be discarded
  13. #
  14. shift 2
  15.  
  16. #
  17. # Invoke cpr if it actually exists
  18. #
  19. if [ -x $CPR ]; then
  20.     exec $CPR -A $*
  21. else
  22.     echo "Sorry, CPR is not supported on this system"
  23.     exit 1
  24. fi
  25.  
  26.